package com.legendshop.openportal.sdk.model.response;

import com.legendshop.openportal.sdk.model.BaseResponse;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author jzh
 * @version 1.0.0
 * @title OrderFreightResponse
 * @date 2024/7/2 10:37
 * @description：
 */
@Data
public class OrderFreightResponse extends BaseResponse {

    private static final long serialVersionUID = 5107306479360896526L;

    /**
     * 总运费金额
     */
    @ApiModelProperty("总运费金额")
    private BigDecimal freightAmount;

    /**
     * 各商品运费
     */
    @ApiModelProperty("各商品运费列表")
    private List<OrderFreightItem> itemList;


    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class OrderFreightItem implements Serializable {

        private static final long serialVersionUID = -7482668458324401124L;

        /**
         * 商品ID
         */
        @ApiModelProperty("商品ID")
        private Long prodId;

        /**
         * 商品skuId
         */
        @ApiModelProperty("skuId")
        private Long skuId;

        /**
         * 运费
         */
        @ApiModelProperty("运费")
        private BigDecimal freightAmount;

    }
}
